<template>
  <div>
    <el-card class="card">
      <div class="content">
        <div class="left">
          <div class="leftBox" v-if="show">
            <i class="el-icon-info"></i>
            <slot name="left">
              <template>
                本月: 社保在缴 公积金在缴 增援 减员 入职 离职
              </template>
            </slot>
          </div>
        </div>
        <div class="right">
          <slot name="right">
            <template>
              <el-button size="mini" type="primary">历史归档</el-button>
              <el-button size="mini" type="primary">退出</el-button>
            </template>
          </slot>
        </div>
      </div>
    </el-card>
  </div>
</template>

<script>
export default {
  name: 'headtool',
  props: ['show']
}
</script>

<style lang="scss" scoped>
.content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  .left {
    .leftBox {
      padding: 6px;
      font-size: 14px;
      background-color: #e6f7ff;
      border: 1px solid #aee0ff;
      span {
        margin-right: 6px;
        color: #409eff;
      }
      i {
        color: #409eff;
      }
    }
  }
}
</style>
